﻿using NDF.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UA.Data.Model.Common;

namespace UA.Framework.Views
{
    public static class EntityModelExtensions
    {
        public static TView ToView<TView>(this EntityModelBase entity) where TView : ViewBase, new()
        {
            TView view = new TView();
            entity.CopyTo(view);
            return view;
        }
    }
}
